package com.neuedu.common.exception;

import lombok.Getter;

@Getter
public final class FrameworkException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 空构造方法，避免反序列化问题
     */
    public FrameworkException() {
    }

    public FrameworkException(String message) {
        this.message = message;
    }

    public FrameworkException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public FrameworkException(String message, Throwable cause) {
        super(message, cause);
    }

}
